import 'dart:convert';

import 'package:enterprise_v6_app/app/data/common/choice_bean.dart';
import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/tool_list_entity.g.dart';

export 'package:enterprise_v6_app/generated/json/tool_list_entity.g.dart';

@JsonSerializable()
class ToolListEntity extends ChoiceBean {
  ToolListEntity();

  factory ToolListEntity.fromJson(Map<String, dynamic> json) => $ToolListEntityFromJson(json);

  ///	企业编码
  String? companyCode = '';

  ///	创建人
  String? createBy = '';

  ///	创建时间
  String? createDate = '';

  ///	主键ID
  String? id = '';

  ///	修改人
  String? updateBy = '';

  ///	修改时间
  String? updateDate = '';

  ///	作业工具
  String? workTool = '';

  ///	作业8大类型id
  String? workTypeId = '';

  ///	作业8大类型名称
  String? workTypeName = '';

  /// 辨识结果
  String? identification = '';

  Map<String, dynamic> toJson() => $ToolListEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }

  @override
  String getId() {
    return id ?? '';
  }

  @override
  String getShowName() {
    return workTool ?? '';
  }
}
